package fr.bda.httpbus.common;

import java.util.List;

public interface HttpBusServerInterface {

	/**
	 * To connect to the server
	 * 
	 * @param login
	 *            The login of the user
	 * @param password
	 *            The password of the user
	 * @return The user object
	 */
	public HttpBusUser connect(String login, String password);

	/**
	 * List the data available on the server
	 * 
	 * @return The list of data
	 */
	public List<HttpBusData> listData(Long sessionId);

	/**
	 * To get a piece of data
	 * 
	 * @param sessionId
	 *            The session ID
	 * 
	 * @return The peace of data return by the server
	 */
	public HttpBusDataResponse getData(Long sessionId,
			HttpBusDataRequest dataRequest);
}
